package jdbc;
import jdbc.InputUtil.InputField;

public class UserInfo {
    @InputField(title = "用户名",notNull = true,mode = {"修改密码","登录","注册"})
    private String username;
    @InputField(title = "密码",notNull = true,mode = {"修改密码","登录","注册"})
    private String password;
    @InputField(title = "昵称",notNull = true,mode = "注册")
    private String nickname;
    @InputField(title = "年龄",notNull = true,regex = "^[1-9]\\d*$",regexNotMathTitle = "年龄必须是正整数",mode = "注册")
    private int age;
    @InputField(title = "新密码",mode = "修改密码")
    private String newPassword;


    public String getNewPassword() {
        return newPassword;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }
    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
